<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?>
<title><?= $sf_response->getTitle() ?></title>

<?php use_stylesheet('/sf/sf_admin/css/main') ?>

<div id="sf_admin_container">

<h1>Change Password</h1>
<div id="sf_admin_content">

<?php if ($hasError): ?>
<div class="form-errors">
<h2><?php echo 'The form is not valid because it contains some errors.' ?></h2>
<dl>

  <dt><?echo $hasError?></dt>
  <dd></dd>

</dl>
</div>

<?php elseif ($hasSuccess): ?>
<div class="save-ok">
<h2><?php echo $hasSuccess ?></h2>
</div>
<?php endif; ?>

<?php echo form_tag('main/changePassword', array(
  'id'        => 'sf_admin_edit_form',
  'name'      => 'sf_admin_edit_form',
  'multipart' => true,
)) ?>

<fieldset id="sf_fieldset_none" class="">

<div class="form-row">
  <label for="mr2_mrno" class="required">New password:</label>  
  <div class="content">     
        <input name="password" id="password" size="15"  type="password" value="<?echo $password?>">
   </div>
</div>

<div class="form-row">
  <label for="mr2_mrno" class="required">Password (again):</label>  
  <div class="content">     
        <input name="passwordbis" id="passwordbis" size="15"  type="password" value="<?echo $passwordbis?>">
   </div>
</div>

</fieldset>
<ul class="sf_admin_actions">
  <li><?php echo submit_tag(__('change'), array (
  'name' => 'save',
  'class' => 'sf_admin_action_save',
  'confirm'=>'Are you sure?',
)) ?></li>
</ul>

</form>
</div>
</div>